<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of BWInputValue
 *
 * @author I062261
 */
class BWInputValue extends BTreeItem {

    //put your code here
    public $inputMediaId = 0;
    public $type;
    public $name;
    public $title;
    public $description;
    public $content;
    public $inputTime;
    public $modifyTime;
    public $deleteTime;
    public $spaceId;
    public $appId;
    public $creatorId;

    public function getRepository($data = NULL, $reload = FALSE) {
        $repository = parent::getRepository($data, $reload);
        $repository->addPropertyToColumnMap('inputMediaId', 'input_media_id');
        $repository->addPropertyToColumnMap('content', 'input_content');
        $repository->addPropertyToColumnMap('type', 'input_type');
        $repository->addPropertyToColumnMap('inputTime', 'input_time');
        $repository->addPropertyToColumnMap('modifyTime', 'modify_time');
        $repository->addPropertyToColumnMap('deleteTime', 'delete_time');
        $repository->addPropertyToColumnMap('creatorId', 'creator_id');

        $repository->addSearchablePropertyList('spaceId');
        $repository->addSearchablePropertyList('name');
        $repository->addSearchablePropertyList('ownerType');
        $repository->addSearchablePropertyList('ownerId');

        $repository->setModel('BWMInputValue');
        return $repository;
    }

    public function getModelClass($data = NULL) {
        //parent::getModelClass($data);
        return 'BWMInputValue';
    }

}

?>
